#include "globalVariables.h"
#include "DataDefine.h"

int netprocessLeftButtonDown()
{
	//ip select
	if (!isSceneChanging)
	{
		//card select
		if (mouseX >= IP_SELECTOR_X && mouseX <= IP_SELECTOR_X + IP_SELECTOR_WIDTH
			&& mouseY >= IP_SELECTOR_Y && mouseY <= IP_SELECTOR_Y + NET_POINTER_HEIGHT * ipAddressToLink.size())
		{
			selectX = (mouseY - IP_SELECTOR_Y) / NET_POINTER_HEIGHT;
			ipSelectBuffer = true;
		}
	}

	return 0;
}

int netprocessLeftButtonUp()
{
	//ip
	if (ipSelectBuffer)
	{
		ipSelectBuffer = false;
		ipPointed = selectX;
	}

	return 0;
}